package com.pz.art.mapper;

import com.pz.art.domain.AssoMemberUnit;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UnitMapper {
    /**
     * 获取所有单位列表
     *
     * @return 所有的协会下单位信息
     */
    public List<AssoMemberUnit> selectAllMember(AssoMemberUnit assoMemberUnit);

    /**
     *  通过id获取单个协会单位
     *
     * @return 返回 单个协会单位信息
     */
    public AssoMemberUnit selectMemberById(Integer id);


    public int insertUnit(AssoMemberUnit assoMemberUnit);

    public AssoMemberUnit selectAsooMemberUnitByPhone(String phone);

    //查询单位列表并且查询下面有多少会员根据unit_id进行链接
    public List<AssoMemberUnit> selectAllMemberUnit(AssoMemberUnit assoMemberUnit);

    int updateUnitMember(AssoMemberUnit assoMemberUnit);

    int updateUnitStatusToDie(@Param("id")Integer id,@Param("status")Integer status);
}
